#pragma once
#include <iostream>

class Date {
private:
	int _year;
	int _month;
	int _day;

public:
	Date(int year = 1, int month = 1, int day = 1);

	void pirnt() {
		printf("%d-%d-%d\n", _year, _month, _day);
	}

	bool operator<(const Date& b);
	bool operator==(const Date& b);
	bool operator>(const Date& b);
	bool operator!=(const Date& b);

	int getmonthday(int year, int month);

	Date& operator+=(int day);
	Date operator+(int day);


};
